package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ReadUserInput
{

    BufferedReader bufferedReader;
    InputStreamReader inputReader;

    ReadUserInput()
    {
        inputReader = new InputStreamReader(System.in);
        bufferedReader = new BufferedReader(inputReader);

    }

    String getUserInput()
    {
        try
        {
            return bufferedReader.readLine();
            //return bufferedReader.ready();
        }
        catch(IOException io)
        {
            io.printStackTrace();
            return "fail";
        }
    }
}


